package com.sparkseries.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class MyNotice {
    @Schema(description = "通知id")
    private Long noticeId;
    @Schema(description = "接收者id")
    private Long receiveId;
    /**
     * 阅读状态
     * 0未读  1已读
     */
    @Schema(description = "阅读状态")
    private Integer readStatus;
    /**
     * 阅读时间
     */
    @Schema(description = "阅读时间")
    @TableField(fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date readDate;

    /**
     * 接收时间
     */
    @Schema(description = "接收时间")
    @TableField(fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createDate;

    /**
     *状态 0删除 1正常
     */
    private Integer status;
}
